package com.axonactive.yolo.dao.interfaces;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;

import com.axonactive.yolo.domain.Airport;

public interface AirportRepository extends JpaRepository<Airport, Integer> {
	
	public List<Airport> findByAirportCode(String airportCode);
	
	public List<Airport> findByAppLocationType(String appLocationType);
	
	public List<Airport> findByAirportCodeContainingOrderByAppLocationTypeDesc(String airportCode);

	public List<Airport> findByCityCodeContainingOrderByAppLocationTypeDesc(String cityCode);

	public List<Airport> findByAirportNameContainingOrderByAppLocationTypeDesc(String airportName);

	public List<Airport> findByCityNameContainingOrderByAppLocationTypeDesc(String cityName);

}
